import { createApp } from 'vue';
import './style.css'
import App from './App.vue'
import router from '@/router/index'
import { createPinia } from 'pinia'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import CKEditor from '@ckeditor/ckeditor5-vue'
import 'highlight.js/styles/atom-one-light.css'
// import Prism from 'prismjs'
import '@/permission' 

const app = createApp(App)
app.use(createPinia())
app.use(ElementPlus)
for(const [key, component] of Object.entries(ElementPlusIconsVue)){
    app.component(key, component)
}
app.use(router)
app.use(CKEditor)
app.mount('#app')
